Law of total covariance